﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListProduct.aspx.cs" Inherits="EHTWebsiteProject.Administrator.ListProduct" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
             <script type="text/javascript">
                 function GetRadWindow() {
                     var oWindow = null;
                     if (window.radWindow) oWindow = window.radWindow;
                     else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

                     return oWindow;
                 }

                 function Close() {
                     GetRadWindow().close();
                 }
       
    </script>    
        </telerik:RadCodeBlock>
         <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
         <div style="width:600px; float:left">
            <div style="padding:10px;width:590px">
                <div style="float:left; width:585px;padding-right:15px">
                    <table>
                            <tr>
                            <td style="width:360px;text-align:right;padding-right:10px">
                                 <asp:DropDownList ID="ddlDanhmucSanPham" runat="server" CssClass="InputText" 
                        Width="200px" AutoPostBack="true" 
                        onselectedindexchanged="ddlDanhmucSanPham_SelectedIndexChanged">
                        </asp:DropDownList>
                            </td>
                                <td><asp:TextBox ID="txtsearch" runat="server" CssClass="InputText" Width="140px"></asp:TextBox> </td>
                                <td>
                                     <asp:ImageButton ID="ImagSearch" runat="server" 
                                    ImageUrl="~/images/EHTgiaodien/icon-16-orphan.png" Width="20px" Height="20px" 
                                    onclick="ImagSearch_Click"/>
                                </td>
                                <td style="width:65px">
                                    <asp:Button ID="btnselect" runat="server" Text="Chọn" 
                                        onclick="btnselect_Click" />
                                </td>
                            </tr>
                        </table>           
                    
                </div>
            </div>
            <div style="padding:5px 0px 0px 10px;float:left;width:590px; color:Red">
                <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
            </div>
            <div style="padding:5px 0px 0px 10px;float:left;width:590px">
                 <asp:Panel ID="pnNhom" runat="server">
                         <telerik:RadTreeList ID="RadTreeList1" runat="server" 
                    AutoGenerateColumns="false" ParentDataKeyNames="ChuyenMucChaID" AllowMultiItemSelection="true"
                    AllowPaging="true" PageSize="20" DataKeyNames="DanhMucID" 
                        onneeddatasource="RadTreeList1_NeedDataSource" Skin="Office2007" 
                        onitemcommand="RadTreeList1_ItemCommand"             
                        onpageindexchanged="RadTreeList1_PageIndexChanged" 
                        onpagesizechanged="RadTreeList1_PageSizeChanged">
                            <Columns>                                                                                            
                                <telerik:TreeListSelectColumn HeaderStyle-Width="40px">
                                </telerik:TreeListSelectColumn>
                                <telerik:TreeListBoundColumn DataField="TenDanhMucVN" UniqueName="TenDanhMucVN" HeaderText="Tên danh mục" />                                                                                      
                                <telerik:TreeListImageColumn  HeaderText="Trạng thái" HeaderStyle-Width="70px" UniqueName="IconTrangThai" DataImageUrlFields="IconTrangThai"  ItemStyle-HorizontalAlign="Center">                               
                                </telerik:TreeListImageColumn>
                                <telerik:TreeListNumericColumn DataField="DanhMucID" UniqueName="DanhMucID"  HeaderText="ID" HeaderStyle-Width="40px">               
                                </telerik:TreeListNumericColumn>                                                                         
                            </Columns>
                        </telerik:RadTreeList>
                     </asp:Panel>
                     <asp:Panel ID="pnNhomOther" runat="server">
                         <telerik:RadTreeList ID="RadTreeList2" runat="server" 
                    AutoGenerateColumns="false" ParentDataKeyNames="ChuyenMucChaID" AllowMultiItemSelection="true"
                    AllowPaging="true" PageSize="20" DataKeyNames="DanhMucID" 
                        onneeddatasource="RadTreeList2_NeedDataSource" Skin="Office2007" 
                        onitemcommand="RadTreeList2_ItemCommand"             
                        onpageindexchanged="RadTreeList2_PageIndexChanged" 
                        onpagesizechanged="RadTreeList2_PageSizeChanged">
                            <Columns>                                                                                            
                                <telerik:TreeListSelectColumn HeaderStyle-Width="40px">
                                </telerik:TreeListSelectColumn>                  
                                <telerik:TreeListBoundColumn DataField="TenDanhMucOther" UniqueName="TenDanhMucOther" HeaderText="Name" />                                               
                                                      
                                <telerik:TreeListImageColumn  HeaderText="Status" HeaderStyle-Width="70px" UniqueName="IconTrangThai" DataImageUrlFields="IconTrangThai"  ItemStyle-HorizontalAlign="Center">                               
                                </telerik:TreeListImageColumn>
                                 <telerik:TreeListNumericColumn DataField="DanhMucID" UniqueName="DanhMucID"  HeaderText="ID" HeaderStyle-Width="40px">               
                                </telerik:TreeListNumericColumn>                                                                         
                            </Columns>
                        </telerik:RadTreeList>
                     </asp:Panel>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
